package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Jurisdiction1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Jurisdiction1Mapper {

    /**
     * 查询属性
     * @param moldId
     * @return
     */
    public List<Jurisdiction1>jurisdiction1List(@Param("moldId") Integer moldId);

    /**
     * 增加属性
     * @param jurisdiction1
     * @return
     */
    public int add(Jurisdiction1 jurisdiction1);

    /**
     * 判断该属性存不存在
     * @param moldId
     * @param parameterId
     * @return
     */
    public int chack(@Param("moldId") int moldId, @Param("parameterId") int parameterId);

    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(@Param("id") int id);

}
